package com.feishi.core.util.common.bean;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: caixq
 * Date: 2020-09-24
 * Time: 下午1:29
 */
public class ATree implements TreeA<ATree>{
    @Override
    public ATree getParent() {
        return null;
    }

    @Override
    public List<ATree> getChilren() {
        return null;
    }
}

interface   TreeA<T extends TreeA<T>>{
    T getParent();
    List<T> getChilren();
}